<template>
  <van-tabbar v-model="active" route>
    <van-tabbar-item icon="home-o" to="/">主页</van-tabbar-item>
    <van-tabbar-item icon="search" to="/search">搜索</van-tabbar-item>
    <van-tabbar-item icon="friends-o" to="/singer">歌手</van-tabbar-item>
    <van-tabbar-item icon="setting-o" to= "/bangdanye">榜单</van-tabbar-item>
  </van-tabbar>
</template>

<script>
import { Tabbar, TabbarItem } from 'vant'
export default{
  name: 'tabBar',
  components: {
    [Tabbar.name]: Tabbar,
    [TabbarItem.name]: TabbarItem
  },
  props: {
    route: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
      active: 0
    }
  }
}
</script>

<style>
</style>
